package fr.umlv.ig.model;

public class Itinerary {

	private final Station start;
	private final Station end;
	
	public Itinerary(Station start, Station end) {
		if(start == null || end == null) {
			throw new NullPointerException("one or the two stations are null");
		}
		this.start = start;
		this.end = end;
	}

	public Station getStart() {
		return start;
	}

	public Station getEnd() {
		return end;
	}
}
